package com.ding.demo.antireptile;

import cn.keking.anti_reptile.annotation.AntiReptile;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping(value="anptile")
public class AnptileController {

    @AntiReptile
    @RequestMapping(value="topage")
    public  String  toPage(){

        return "antiReptile";
    }

    /*@AntiReptile
    @RequestMapping(value="getData")
    @ResponseBody
    public Map<String,Object> getData(){

        Map<String,Object> map =new HashMap<>();
        map.put("name","yuebao");
        return map;
    }*/
}
